<%@ page import="com.Text1" %><%--
  Created by IntelliJ IDEA.
  User: 范军建
  Date: 2022/3/28
  Time: 17:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
        <%
     Object text2=  session.getAttribute("text1");
     Text1 text11=null;
    if (text2 !=null){
        text11= (Text1) text2;

    }
        %>

<%out.print("用户名为：" + text11.getName());%><br />
<%out.print("密码为：" + text11.getPassword());%>







</body>
</html>
